var e = getApp();

Page({
    data: {
        language: "",
        order_status: "",
        name: "",
        mobile: "",
        address: "",
        express_sn: "",
        deposit_total: "",
        express: "",
        id: ""
    },
    onLoad: function(e) {
        e.id && this.setData({
            id: e.id
        }), this.getDetail();
    },
    onReady: function() {
        var e = wx.getStorageSync("langIndex");
        this.setData({
            language: e.en
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getDetail: function() {
        var a = this, t = e.getNetAddresss("plugin.lease-toy.api.retreat.return.returnDetail");
        t += "&order_id=" + this.data.id, e._getNetWork({
            url: t,
            success: function(e) {
                var t = e.data;
                1 == t.result && a.setData({
                    order_status: t.data.return_name,
                    name: t.data.lease_address.realname,
                    mobile: t.data.lease_address.mobile,
                    address: t.data.lease_address.address,
                    express_sn: t.data.lease_express.express_sn,
                    express: t.data.lease_express.express_company_name,
                    deposit_total: t.data.deposit_total
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    }
});